Skip to content

Trade-level risk example: every swap's sensitivity to every curve quote with AAD - #30

Merged
auto-differentiation-dev merged 1 commit into
mainfrom
samples/trade-risk
Nov 13, 2026
Merged

auto-differentiation-dev merged 1 commit into
mainfrom
samples/trade-risk

Conversation

@auto-differentiation-dev

Copy link
Copy Markdown
Contributor

A new example that computes the sensitivity of every swap in a book to every curve quote with AAD, checked against central differences and compared with bumping at run time.

Changes

  • Python/examples/trade-risk.py: bootstrap a curve from deposits, FRAs and swaps, record the curve once and each swap in a small recording of its own, and get each swap's sensitivities to all quotes; checked against a full recording of curve and book and against central differences on sample swaps
  • CHANGELOG entry

@auto-differentiation-dev
auto-differentiation-dev merged commit fe22a19 into main Nov 13, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant